#!/usr/bin/env python3
# -*- coding: utf-8 -*-
from lj_action.action_data import ActionData, init_action_data

lj_fas = {
    'action-table-count': lambda inBo: init_action_data(inBo.get('data_code'), inBo.get('data').get('_dsId')).count(inBo.get('data')),
    'action-table-list': lambda inBo: init_action_data(inBo.get('data_code'), inBo.get('data').get('_dsId')).list(inBo.get('data')),
    'action-table-page': lambda inBo: init_action_data(inBo.get('data_code'), inBo.get('data').get('_dsId')).page(inBo.get('data')),
    'action-table-remove': lambda inBo: init_action_data(inBo.get('data_code'), inBo.get('data').get('_dsId')).remove(inBo.get('data').get('id')),
    'action-table-sync': lambda inBo: init_action_data(inBo.get('data_code'), inBo.get('data').get('_dsId')).sync(inBo.get('data')),
    'action-table-view': lambda inBo: init_action_data(inBo.get('data_code'), inBo.get('data').get('_dsId')).get(inBo.get('data').get('id')),
    'action-table-info': lambda inBo: init_action_data(inBo.get('data_code'), inBo.get('data').get('_dsId')).metadata(),
    # 'action-table-infos': lambda inBo: listTable(inBo.get('data').get('_dsId')),
}
